﻿// -----------------------------------------------------------------------
// <copyright file="ValueOutOfRangeException.cs" company="Microsoft">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace Ex03.GarageLogic
{
    using System;
    using System.Collections.Generic;
    using System.Text;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class ValueOutOfRangeException : Exception
    {
        private float m_MaxValue;
        private float m_MinValue;
        private string m_Message;

        public ValueOutOfRangeException(float i_MinValue, float i_MaxValue, string i_ExceptionMsg)
        {
            this.m_MaxValue = i_MaxValue;
            this.m_MinValue = i_MinValue;
            this.m_Message = i_ExceptionMsg;
        }

        public float MaxValue
        {
            get { return this.m_MaxValue; }
        }

        public float MinValue
        {
            get { return this.m_MinValue; }
        }
        
        public override string Message
        {
            get { return this.m_Message; }
        }
    }
}
